package cn.bdqn.service.impl;

import cn.bdqn.domain.Dict;
import cn.bdqn.mapper.DictMapper;
import cn.bdqn.service.DictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 字典业务接口实现类
 *
 * @author dkj
 */
@Service("dictService")
public class DictServiceImpl implements DictService {


    /**
     * 字典mapper接口
     */
    @Autowired
    private DictMapper dictMapper;

    /**
     * 根据dicTypeCode字典类型代码查询
     * @param dicTypeCode
     * @return
     */
    @Override
    public List<Dict> queryByDicTypeCode(String dicTypeCode) {
        //调用根据根据dicTypeCode字典类型代码查询的方法
        return dictMapper.selectByDicTypeCode(dicTypeCode);
    }
}
